package org.springframework.ioc.beanfactory.pojo;

import org.springframework.beans.factory.InitializingBean;



public class BeanInit implements InitializingBean{

	private String handlerString;

	public BeanInit() {
		System.out.println("baseInit invoke");
	}

	public BeanInit(String msg) {
		this.handlerString = msg;
	}

	public String getHandlerString() {
		return handlerString;
	}

	public void setHandlerString(String handlerString) {
		this.handlerString = handlerString;
	}

	public void destroyMethod(){
		System.out.println("BeanInit destroyMethod is invoke.........");
	}
	
	@Override
	public void afterPropertiesSet() throws Exception {
		System.out.println(getClass().getName()+":InitalBean has invoke.......");
	}
}
